package n02;

import java.nio.file.Files;
import java.nio.file.Paths;

public class T02 {
	static String s1="简单数据";
	//static String s2=Files.readString(Paths.get( "C:/data.txt" ));
	static String s3;
	static { //静态代码块用来对静态数据进行初始化
		try {
			s3=Files.readString(Paths.get("C:/data.txt"));
		}catch( Exception e) {
			
		}
	}
	public static void main(String[] args) {
		System.out.println(s1);
		System.out.println(s3);
	}

}
